package org.xdq.单例模式.饿汉式;

public class Instance {

    private static Instance instance = new Instance();

    private Instance(){
        System.out.println("单例对象创建了！");
    }

    public static Instance getInstance(){
        return instance;
    }

}
